package STUDENT.TRANNGUYENQUAN.OOPs.OBJECT_AND_CLASSES.Bai3;

import java.util.Scanner;

public class Views {

	public static void main(String[] args) {
		PoundControllers controller = new PoundControllers();
		Kilogram kg = new Kilogram();
		Scanner sc;
		String temp = "";
		do {
			System.out.println("Nhap so kilogram:");
			sc = new Scanner(System.in);
			String temp1 = sc.nextLine();
			if (!temp1.isEmpty()) {
				temp = temp1;
			} 
			else {
				System.out.println("Ban chua nhap kilogram!");
				}
		} while (temp.isEmpty());
		kg.setKilogram(Double.parseDouble(temp));
		System.out.println(kg.getKilogram() +" kilograms = "+controller.ConvertToPound(kg)+"pounds");

	}

}
